<%@ page import="com.walkingfiles.registry.Organization" %>



<div class="fieldcontain ${hasErrors(bean: organizationInstance, field: 'areas', 'error')} ">
	<label for="areas">
		<g:message code="organization.areas.label" default="Areas" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${organizationInstance?.areas?}" var="a">
    <li><g:link controller="area" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="area" action="create" params="['organization.id': organizationInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'area.label', default: 'Area')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: organizationInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="organization.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${organizationInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: organizationInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="organization.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${organizationInstance?.name}"/>
</div>

